﻿using System.Windows;
using System.Windows.Controls;
using MainGameModule.ViewModels;

namespace MainGameModule.Views
{
    public partial class TutorialView : UserControl
    {
        public TutorialView(TutorialViewModel vm)
        {
            InitializeComponent();

            this.DataContext = vm;
        }

        private void WhatIsGreenWorldButton_Click(object sender, RoutedEventArgs e)
        {
            this.WhatIsGreenWorld.Visibility = System.Windows.Visibility.Visible;
            this.GettingStarted.Visibility = System.Windows.Visibility.Collapsed;
            this.HowToPlay.Visibility = System.Windows.Visibility.Collapsed;
            this.PlayingTogether.Visibility = System.Windows.Visibility.Collapsed;
            this.TheLateGame.Visibility = System.Windows.Visibility.Collapsed;
        }

        private void GettingStartedButton_Click(object sender, RoutedEventArgs e)
        {
            this.WhatIsGreenWorld.Visibility = System.Windows.Visibility.Collapsed;
            this.GettingStarted.Visibility = System.Windows.Visibility.Visible;
            this.HowToPlay.Visibility = System.Windows.Visibility.Collapsed;
            this.PlayingTogether.Visibility = System.Windows.Visibility.Collapsed;
            this.TheLateGame.Visibility = System.Windows.Visibility.Collapsed;
        }

        private void HowToPlayButton_Click(object sender, RoutedEventArgs e)
        {
            this.WhatIsGreenWorld.Visibility = System.Windows.Visibility.Collapsed;
            this.GettingStarted.Visibility = System.Windows.Visibility.Collapsed;
            this.HowToPlay.Visibility = System.Windows.Visibility.Visible;
            this.PlayingTogether.Visibility = System.Windows.Visibility.Collapsed;
            this.TheLateGame.Visibility = System.Windows.Visibility.Collapsed;
        }

        private void PlayingTogetherButton_Click(object sender, RoutedEventArgs e)
        {
            this.WhatIsGreenWorld.Visibility = System.Windows.Visibility.Collapsed;
            this.GettingStarted.Visibility = System.Windows.Visibility.Collapsed;
            this.HowToPlay.Visibility = System.Windows.Visibility.Collapsed;
            this.PlayingTogether.Visibility = System.Windows.Visibility.Visible;
            this.TheLateGame.Visibility = System.Windows.Visibility.Collapsed;
        }

        private void TheLateGameButton_Click(object sender, RoutedEventArgs e)
        {
            this.WhatIsGreenWorld.Visibility = System.Windows.Visibility.Collapsed;
            this.GettingStarted.Visibility = System.Windows.Visibility.Collapsed;
            this.HowToPlay.Visibility = System.Windows.Visibility.Collapsed;
            this.PlayingTogether.Visibility = System.Windows.Visibility.Collapsed;
            this.TheLateGame.Visibility = System.Windows.Visibility.Visible;
        }
    }
}
